package com.xml.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xml E-Mail:kaioct@qq.com
 * @date 2021/3/24
 * @desc gridreportspringboot
 * @created 2021-03-24 20:49
 **/
@Slf4j
@Controller
public class WelcomeController {

    @RequestMapping("/")
    public String hello(){
        log.info("跳转到首页");
        return "forward:index.html";
    }

    @RequestMapping("/hi")
    public String hi(){
        log.info("测试项目部署成功使用");
        return "forward:hi.html";
    }
}
